// JavaScript Document
function imgs(id,liWidth,liHeight){
 var imgs=document.getElementById(id).getElementsByTagName("img");
 for(var i=0;i<imgs.length;i++)
 {
 var oWidth=imgs[i].offsetWidth;
 var oHeight=imgs[i].offsetHeight;
 if(oWidth>liWidth)
  {
   imgs[i].style.width=liWidth+"px";
   var sHeight=oHeight*liWidth/oWidth;
   imgs[i].style.height=sHeight+"px";
   if(sHeight>liHeight)
   {
    imgs[i].style.width=liWidth*liHeight/sHeight+"px";
    imgs[i].style.height=liHeight+"px";
   }
  }
 if(oWidth<liWidth&&oHeight>liHeight)
   {
    imgs[i].style.width=oWidth*liHeight/oHeight+"px";
    imgs[i].style.height=liHeight+"px";
   }
 }
}

function show(){
  var imgs=document.getElementById("ps").getElementsByTagName("img");
  for(var i=0;i<imgs.length;i++)
  {
   var oWidth=imgs[i].offsetWidth;
   if(oWidth>=720)
    {
	 imgs[i].style.width=720+"px";
	}
  }
}